import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, ModalController } from 'ionic-angular';
import { LoginPage } from '../login/login';
import { ProjectPage } from '../project/project';
import { PasswordPage } from '../password/password';

/**
 * Generated class for the IntroductionPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-introduction',
  templateUrl: 'introduction.html',
})
export class IntroductionPage {
  username: any;

  constructor(public navCtrl: NavController, public navParams: NavParams, public modalCtrl: ModalController) {
  }

  ionViewDidLoad() {
    this.username = sessionStorage.getItem('username');
  }

  logOut() {

    let modal = this.modalCtrl.create(LoginPage);
    modal.present();
  }


  go() {
    this.navCtrl.push(ProjectPage);
  }

  password() {
    this.navCtrl.push(PasswordPage);
  }

  warnSetting() {

  }


}
